package com.study.spmongodb.effjava.demo83;

import java.util.Date;

/**
 * @author MI
 * @version 1.0
 * @date 2020/11/9 15:05
 */
public class LazyDemo {
    {
        System.out.println("普通代码块");
    }

    static {
        System.out.println("静态代码块");
    }

    public LazyDemo() {
        System.out.println("构造方法");
    }

    static Date date() {
        System.out.println("date");
        return new Date();
    }

    static final Date ds = date();

    public static void main(String[] args) {
        new LazyDemo();
    }

}
